<div class="rg-login-wrapper">
  <div class="rg-login-card">
    <div class="rg-login-header">
      <div class="rg-login-logo">
        <i class="bi bi-key-fill"></i>
      </div>
      <h2 class="mb-1">Reset Password</h2>
      <p class="text-muted mb-0">We'll send you a reset link</p>
    </div>

    <%= form_tag "forgot_password", html: { class: "needs-validation", novalidate: true } do %>
      <div class="mb-3">
        <label for="email" class="form-label">Email Address</label>
        <div class="input-group">
          <span class="input-group-text"><i class="bi bi-envelope"></i></span>
          <%= text_field_tag :email, params[:email], {
            class: "form-control",
            id: "email",
            placeholder: "you@example.com",
            required: true,
            autofocus: true,
            type: "email"
          } %>
        </div>
        <div class="form-text">Enter the email address associated with your account</div>
      </div>

      <div class="d-grid gap-2">
        <%= submit_tag "Send Reset Link", class: "btn btn-primary btn-lg" %>
      </div>

      <hr class="my-4">

      <div class="text-center">
        <p class="text-muted mb-2">Remember your password?</p>
        <%= link_to login_path, class: "btn btn-outline-primary" do %>
          <i class="bi bi-arrow-left"></i> Back to Login
        <% end %>
      </div>
    <% end %>

    <div class="mt-4 p-3 rounded" style="background: linear-gradient(135deg, rgba(69, 123, 157, 0.1), rgba(29, 53, 87, 0.1)); border: 2px solid rgba(69, 123, 157, 0.3);">
      <div class="d-flex align-items-start">
        <i class="bi bi-info-circle-fill me-2 mt-1" style="font-size: 1.25rem; color: var(--rg-secondary);"></i>
        <div class="small">
          <strong class="d-block mb-1">Password Reset Help</strong>
          If you don't receive an email within a few minutes, check your spam folder or contact support.
        </div>
      </div>
    </div>
  </div>
</div>

<style>
  /* Override main content styling for password reset page */
  .rg-main.no-sidebar {
    margin: 0;
    padding: 0;
  }
</style>
